Correct test for unknown alt in lowranceusr writer.
authorrobertl <robertl>
Tue, 15 May 2007 13:41:24 +0000 (13:41 +0000)
committerrobertl <robertl>
Tue, 15 May 2007 13:41:24 +0000 (13:41 +0000)
lowranceusr.c

index 49907ebb97a90d9b3dee28999129547bcf342aff..2501aeb051aa545ec523bfb38ff9fbb4edd96d34 100644 (file)
@@ -639,7 +639,7 @@ lowranceusr_waypt_disp(const waypoint *wpt)
        char *comment;
        int alt = METERS_TO_FEET(wpt->altitude);
 
-       if (alt == unknown_alt) {
+       if (wpt->altitude == unknown_alt) {
                alt = UNKNOWN_USR_ALTITUDE;
        }